/**
 * Author: Shen Yanqiu
 * Date: 2017-12-06
 * Time: 13:15
 *
 */
import React from 'react';
import { connect } from 'dva';
import TopOperation from './../../../components/TopOperation';
import { Button } from 'antd';
import styles from './Operation.less';

const settings = {
  designation: true, // 名称输入框
  status: false, // 状态选择框
  ownership: false, // 所属选择框
  section: false, // 部门选择框
  starlevel: false, // 星级选择框
  object: false, // 对象选择框
  time: false, // 时间选择框
  textAlgin: "left", // 搜索框向左
}
class Operation extends React.Component {
  render () {
    const { remove } = this.props;
    const deletehandler = () => {
      remove();
    }
    return (
      <div className={styles.Operation}>
        <TopOperation {...settings} SearchData={this.props.SearchData} />
        <Button type={"danger"} className={styles.deleteBtn} icon={"delete"} onClick={deletehandler}>批量删除</Button>
      </div>
    );
  }
}
export default Operation;
